package com.heima.zuoye.day03.timu2;

public class Demo1 {
    public static void main(String[] args) {
        Student s1 = new Student("小明", 18, "男");
        Student s2 = new Student("小红", 19, "女");
        Sex c = Sex.Girl;
        switch (c) {
            case BOY:
                System.out.println(s1.toString());
                break;
            case Girl:
                System.out.println(s2.toString());
                break;
        }
        System.out.println(Sex.Girl);
    }
}

